import {
    Platform,
    NativeModules,
} from 'react-native'
import React, {Component} from 'react';
import Native from '../../Native'

var MXPushMethodsManager = NativeModules.MXPushMethodsManager;

export default class GeneralMethods {
    static hiddenBottomTabBar(isHidden){
        if(Platform.OS==='ios'){
            MXPushMethodsManager.hiddenBottomTabBar(isHidden);
        }else{
            Native.hiddenNavigationBottom(isHidden);
        }
    }

    static goToLoginPage(){
        if(Platform.OS==='ios'){
            MXPushMethodsManager.pushToWherePage(5)
        }else{
            Native.startActivityFromJS("com.moxi.footballmatch.activity.LoginActivity",null);
        }
    }
}
